<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: Root404
  Date: 2023/10/7
  Time: 11:51
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<table border="4">
    <tr>
        <th>id</th>
        <th>name</th>
        <th>title</th>
    </tr>
    <c:forEach items="${pagelist.list}" var="xjj" varStatus="s">
<%--        <c:if test="${s.index%2==0}">style="background-color: aqua" </c:if>--%>
    <tr  >
        <td>${xjj.id}</td>
        <td>${xjj.category.name}</td>
        <td>${xjj.title}</td>
    </tr>
    </c:forEach>
</table>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.1/jquery.min.js">
</script>
<script>
        // $("tr:odd").css("background-color","red");
</script>
</body>
</html>
